import React, { Component } from "react";
import "./02-class.css";

class App extends Component {
  render() {
    return (
      <>
        <h2>class改变样式</h2>
        {/* 取类名的时候，要将class写成className */}
        <p className="font">hello react!</p>

        {/* 除了class以外还有for属性要换成htmlFor */}
        <label htmlFor="username">姓名：</label>
        <input type="text" id="username" />
      </>
    );
  }
}

export default App;
